package ru.elifantiev.cityrouter.infrastructure.geocoding;


import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import ru.elifantiev.cityrouter.infrastructure.geocoding.yandex.YandexGeocoder;


public class GeocoderFactory {

    public static Geocoder build(Context ctx) throws IllegalArgumentException {
        String geocoderVariant = "Yandex";

        if (geocoderVariant.equals("Yandex"))
            return new YandexGeocoder(ctx);

        throw new IllegalArgumentException(geocoderVariant + " is unknown geocoding variant");
    }

}